const { completeRequire } = require("../../utils")
const inflectionMiddleware = require("../../middleware/resource")

module.exports = ({ app, router }) => {
    completeRequire(__dirname, { app, router })


    app.use("/api/web/:resource", inflectionMiddleware(), router)

}
